NOTE: This Technical Q&A has been retired. Please see the Technical Q&As page for current documentation.

Technical Q&A QTMTB25
How to Get Movie Frame Time Parameter for GetMoviePict

Note:
(This Q&A has been superceded by QTMTB 32.)

Q How do I find the correct time values to pass to GetMoviePict, to get all the sequential frames of a QuickTime movie?

A The best way to find the correct time to pass to get movie frames is to call the GetMovieNextInterestingTime routine repeatedly. Note that the first time you call GetMovieNextInterestingTime its flags parameter should have a value of nextTimeMediaSample+nextTimeEdgeOK to get the first frame.

For subsequent calls the value of flags should be nextTimeMediaSample. Also, the whichMediaTypes parameter should include only tracks with visual information, VisualMediaCharacteristic or 'eyes'. Check the Movie Toolbox chapter of the QuickTime documentation for details about the GetMovieNextInterestingTime call.

[May 01 1995]


Developer Documentation | Technical Notes | Development Kits | Sample Code